
package org.springxrsk.modules.schedule.service.impl;

import org.springxrsk.modules.schedule.pojo.entity.QyPreBookEntity;
import org.springxrsk.modules.schedule.pojo.vo.QyPreBookVO;
import org.springxrsk.modules.schedule.excel.QyPreBookExcel;
import org.springxrsk.modules.schedule.mapper.QyPreBookMapper;
import org.springxrsk.modules.schedule.service.IQyPreBookService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springxrsk.core.mp.base.BaseServiceImpl;
import java.util.List;

/**
 * 预约 服务实现类
 *
 *  @author
 * @since 2024-06-15
 */
@Service
public class QyPreBookServiceImpl extends BaseServiceImpl<QyPreBookMapper, QyPreBookEntity> implements IQyPreBookService {

	@Override
	public IPage<QyPreBookVO> selectQyPreBookPage(IPage<QyPreBookVO> page, QyPreBookVO qyPreBook) {
		return page.setRecords(baseMapper.selectQyPreBookPage(page, qyPreBook));
	}


	@Override
	public List<QyPreBookExcel> exportQyPreBook(Wrapper<QyPreBookEntity> queryWrapper) {
		List<QyPreBookExcel> qyPreBookList = baseMapper.exportQyPreBook(queryWrapper);
		//qyPreBookList.forEach(qyPreBook -> {
		//	qyPreBook.setTypeName(DictCache.getValue(DictEnum.YES_NO, QyPreBook.getType()));
		//});
		return qyPreBookList;
	}

}
